﻿<!--#include file="const.inc"-->
<%
'====================================================================
' 感谢使用晴天3G智能建站系统..
' 作者:梁永强.QQ:766750857
' 官方网址:wap.qt3g.com
' 声明:软件版权归作者所有,没有经过作者本人同意不得非法破解和传播本程序
'====================================================================
%>
<%

select case v
case "0"
we0="<br/>"
%>
<card title="手机型号"><p align="<%=qingtian.px%>">
<%
case "1"
zi="<span style=""color:#FF5500"">"
zi0="</span>"
we="<div class=""footer"">"
sou="<div class=""block4"">"
dao="<div class=""navi"">"
we0="</div>"
%>
<title>手机型号</title>
</head>
<body>
<!--#include virtual="/css.inc"-->
<%

End Select
dim rs,sql,i,Page,kw,trr,act
    	kw = Request.form("kw")
        if kw="" then
        trr=true
    	kw = Request.QueryString("kw")
        act=0
        else
        act=1
        trr=false
        end if
        if Request.QueryString("act")=1 then trr=false
        kw=qingtian.repsql(kw)
    	Page = Request("page")
    	If Page = "" Then Page = 1
   	If Not IsNumeric(Page) Then Page = 1
    	Page = CLng(Page)
    	If Page < 1 Then Page = 1
    	urls = Request("urls")
%>
<%=qingtian.qingsav("58877")%><%=dao%>请选择您的机型<%=we0%>
<%


	if kw<>"" then

	set rs=server.createobject("adodb.recordset")


      	Sql = "select [id],[name],[name1] from qingtian_phonemob where [name1]  like '%"&kw&"%' "
      	rs.open sql,conn,1,1
	if not (rs.bof and rs.eof)  then
			Rs.PageSize = 40


			IF Not IsEmpty(Page) Then
				IF Not IsNumeric(Page) Then '判断Page是否为数字
					Page=1
				Else
					Page=Cint(Page) '转换成短整形Integer
				End IF
				IF Page > Rs.PageCount  Then
					Rs.AbsolutePage = Rs.PageCount '设置当前显示页等于最后一页
				ElseIF Page <= 0 Then
					Rs.AbsolutePage = 1 '设置当前页等于第一页
				Else
					Rs.AbsolutePage = Page '如果大于零,显示当前页等于接收的页数
				End IF
			Else
				Rs.AbsolutePage = 1
			End IF
				Page = Rs.AbsolutePage
Response.Write we
		For i=1 to Rs.PageSize
			If Rs.Eof Then
				exit For
			End If
if trr=false then
act=1
Response.Write("<a href='phone.asp?action=login&amp;id="&rs("id")&"&amp;urls="&urls&"&amp;sid="&sidd&"'>"&qingtian.utf8(rs("name1"))&"</a> ")
else
Response.Write("<a href='phone.asp?action=login&amp;id="&rs("id")&"&amp;urls="&urls&"&amp;sid="&sidd&"'>"&qingtian.utf8(rs("name"))&"</a> ")
end if
		Rs.MoveNext
		Next
 Response.Write we0
    		'分页
                if rs.PageCount>1 then
                    Response.Write dao
                end if
    		If Page < rs.PageCount Then
    		    Response.Write("<a href='search_phone.asp?act="&act&"&amp;urls="&urls&"&amp;kw="&server.URLEncode(kw)&"&amp;page=" & Page + 1 & "&amp;sid="&sidd&"'>下一页</a>")
    		End If
       
    		If Page > 1 And Page < rs.PageCount Then
    		    Response.Write("|")
    		End If
        
    		If Page > 1 Then
    		    Response.Write("<a href='search_phone.asp?act="&act&"&amp;urls="&urls&"&amp;kw="&server.URLEncode(kw)&"&amp;page=" & Page - 1 & "&amp;sid="&sidd&"'>上一页</a>"&we0&"")
    		Elseif rs.PageCount >1 then
    		    Response.Write(""&we0&"")
    		End If    
    		If rs.PageCount > 1 Then
    		Response.Write("" & we & "(第" & Page & "/总" & rs.PageCount & "页/共" & rs.RecordCount & "条)" & we0 & "")
    		End If
                                                               
		else

			%>
			<%=we%>没有找到相关手机型号<%=we0%>
		<%end if
		Rs.close
		set rs=nothing

		else
			%><%=we%>没有找到相关手机型号<%=we0%><%
		end if
%><%=qingtian.qingsav("54546")%><%=sou%><a href="/phone.asp?sid=<%=sidd%>">返回上级</a><%=we0%>
<%
end Function
%>
